env = Environment(TARGET_ARCH="x86",
                  CCFLAGS = ['/nologo','/EHsc'],
                  CPPDEFINIES = ['UNICODE', 'WIN32'],
                  CXXCOM = '$CXX $CXXFLAGS $CCFLAGS $_CCCOMCOM  /c $CHANGED_SOURCES $_MSVC_OUTPUT_FLAG',
                  LIBS = ['kernel32', 'user32'])

Export('env')

SConscript('WalleLib/SConscript_Walle', variant_dir = "build/WalleLib", duplicate=0)
SConscript('ConsoleApp/SConscript_Console',variant_dir = "build/ConsoleApp", duplicate=0)

#print env.Dump()

#print env['CPPPATH']
#print env['CXXCOM']
#print env['CCCOM']


# release = Environment(  CCFLAGS     = '/nologo /GX /GR /MD /Z7 /W3',
#                         CPPDEFINES  = ['WIN32', 'NDEBUG', '_WINDOWS',  '_MBCS', '_USRDLL', 'USEDLL', 'SHARED_DLLExport'],
#                         CPPPATH     = '.',
#                         LIBS        = 'Ws2_32.lib',
#                         RCFLAGS     = '/l 0x409 /d "NDEBUG"',
#                         RCCOM       = '$RC $RCFLAGS /fo$TARGET $SOURCES')


#CFLAGS :  General options that are passed to the C compiler (C only; not C++)
#CCFLAGS:  General options that are passed to the C and C++ compilers.
#CXXFLAGS: General options that are passed to the C++ compiler. By default, this includes the value of
#          $CCFLAGS, so that setting $CCFLAGS affects both C and C++ compilation. If you want to add
#          C++-specific flags, you must set or override the value of $CXXFLAGS.

# INCLUDE, LIBPATH, LIB

#ATL 7.1 is now part of the Windows Driver Kit.
